﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="e_news.ascx.cs" Inherits="administrator_uc_admin_e_news" %>
<%@ Register Assembly="CKEditor.NET" Namespace="CKEditor.NET" TagPrefix="CKEditor" %>
<script type="text/javascript">
    function checkUncheck(chk) {
        if (chk.checked) {
            $("#ShowOrHideFileUploadImage").show();
        } else {
            $("#ShowOrHideFileUploadImage").hide();
        }
    }   
</script>
<script>
    $(document).ready(function () {
        $("#ShowOrHideFileUploadImage").hide();
    });
</script>
<table cellspacing="1" class="classtable">
    <tr>
        <td class="classtitle" colspan="2">
            CẬP NHẬT
        </td>
    </tr>
    <tr>
        <td class="classmessage" colspan="2">
            <asp:Label ID="lblMessage" runat="server"></asp:Label>   
            <asp:HiddenField ID="hdItemID" runat="server" />        
        </td>
    </tr>  
    <tr>
        <td class="classcolleft">
            Chọn nhóm tin:</td>
        <td class="classcolright">
            <asp:DropDownList ID="DropdownParentID" runat="server" Width="250px" AppendDataBoundItems="true">
                <asp:ListItem Value="0">---Chọn nhóm tin---</asp:ListItem>
            </asp:DropDownList>
        </td>
    </tr>
    <tr>
        <td class="classcolleft">
            Ảnh đại diện:</td>
        <td class="classcolright">
             <div><asp:Literal ID="ltViewImage" runat="server"></asp:Literal></div>
             <div>
                <input id="chkUploadFile" type="checkbox" onchange="javascript:checkUncheck(this);" />
                <label for="chkUploadFile">Cập nhật ảnh mới</label>
            </div>
            <div id="ShowOrHideFileUploadImage">
                <asp:FileUpload ID="FileUploadImage" runat="server" Width="300px" />
            </div>  
            
        </td>
    </tr>  
    <tr>
        <td class="classcolleft">
            Tiêu đề:</td>
        <td class="classcolright">
            <asp:TextBox ID="txtTitle" runat="server" Width="500px"></asp:TextBox>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
                ControlToValidate="txtTitle" ErrorMessage="(*)"></asp:RequiredFieldValidator>
        </td>
    </tr> 
    <tr>
        <td class="classcolleft">
            Mô tả:</td>
        <td class="classcolright">
            <CKEditor:CKEditorControl ID="CKEditorDescription" runat="server" Toolbar="Basic" Height="90px"></CKEditor:CKEditorControl>
        </td>
    </tr>   
    <tr>
        <td class="classcolleft">
            Nội dung:</td>
        <td class="classcolright">
           <CKEditor:CKEditorControl ID="CKEditorBody" Toolbar="Full" runat="server" Height="220px"></CKEditor:CKEditorControl>
        </td>
    </tr>  
    <tr>
        <td class="classcolleft">
            Nguồn bài viết:</td>
        <td class="classcolright">
            <asp:TextBox ID="txtSource" runat="server" Width="500px"></asp:TextBox>            
        </td>
    </tr>    
    <tr>
        <td class="classcolleft">
            Hiển thị:</td>
        <td class="classcolright">
            <asp:RadioButtonList ID="rdActive" runat="server" 
                RepeatDirection="Horizontal">
                <asp:ListItem Selected="True" Value="1">Có</asp:ListItem>
                <asp:ListItem Value="0">Không</asp:ListItem>
            </asp:RadioButtonList>
        </td>
    </tr>
    <tr>
        <td class="classcolleft">
            &nbsp;</td>
        <td class="classcolright">
            <asp:LinkButton ID="lbtEditItem" runat="server" onclick="lbtEditItem_Click">
            <img src="../images/icons/icon_edit.png" border="0px" /> <b>Cập Nhật</b>
            </asp:LinkButton>
            ||
            <asp:LinkButton ID="lbtCloseForm" runat="server" 
                OnClientClick="javascript:CloseWindows();" CausesValidation="False">
            <img src="../images/icons/icon_close.jpg" border="0px" /><b>Đóng Lại</b>
            </asp:LinkButton>
         </td>
    </tr>
</table>

